package com.ojoin.trade.common_core.web.service;

import com.ojoin.trade.common.exception.BusinessException;
import com.ojoin.trade.common.web.service.BaseService;
import com.ojoin.trade.common_core.web.domain.TbFactoringCompany;

/**
 * 保理公司服务接口
 * @author guoting
 *
 */
public interface FactoringCompanyBaseService extends BaseService<TbFactoringCompany> {
	
	
	/**
	 * 查询保理员对应保理公司详细信息(T0000010)
	 * @param operatorid
	 * 
	 * 说明：
	 * 从tb_factoring_company中查询tb_factoring_operator中参数保理员对应的companyVO，记录业务日志
	 * 
	 * @return
	 * @throws BusinessException
	 */
	public TbFactoringCompany queryFactoringCompanyVOByOperatorID(int operatorid) throws BusinessException;
	
	/**
	 * 查询保理员对应保理公司的支付商户号(T0000019)
	 * @param operatorid
	 * @return
	 * @throws BusinessException
	 */
	public String queryFactoringCompanyMhtNoByOperatorID(int operatorid) throws BusinessException;

    /**查询用户贷款对应的公司id
     ** @param joinid
     * @return
     * @throws BusinessException
     */
    public Integer getCompanyByjoind(int joinid) throws BusinessException;
}
